package com.jqutil.jqutil.cy.common;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.jqutil.jqutil.cy.entity.ReadData;
import lombok.Data;

import java.util.LinkedList;

/**
 * @Author: chenyun
 * @Date: 2021/09/10/14:45
 * @Description:
 */
@Data
public class ReadListener extends AnalysisEventListener<ReadData> {
    LinkedList<ReadData> list = new LinkedList<ReadData>();
    @Override
    public void invoke(ReadData readData, AnalysisContext analysisContext) {
        list.add(readData);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("读取完毕");
    }
}
